import { createRouter, createWebHashHistory } from "vue-router";

export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            component: () => import('./layout/home.vue'),
            children: [
                { path: '', component: import('./views/home.vue') },
                { path: 'menu1', component: import('./views/home.vue') },
                { path: 'menu2', component: import('./views/home.vue') }
            ]
        },
        {
            path: '/login',
            component: () => import('./layout/simple.vue'),
            children: [
                { path: '', component: import('./views/login.vue') }
            ]
        }, 
        {
            path: "/:pathMatch(.*)*",
            name: 404,
            component: () => import('./views/404.vue')
        }
    ],
})